Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #38141 - Hide search submit button when not submittable #10416

Merged
merged 1 commit into from
Jan 16, 2025

Conversation

MariaAga
Copy link
Member

We already have this logic in webpack/assets/javascripts/react_app/components/SearchBar/SearchAutocomplete.js as well, this is an adjustment since we added logic to the onSearch in /SearchBar/index.js.
Without this places with no onSeach (like the job wizard user inputs) will have a submit button that does nothing and adds an error in the console of onSeach being undefined.

Copy link
Member

@ofedoren ofedoren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @MariaAga !

@ofedoren ofedoren merged commit 0ea2685 into theforeman:develop Jan 16, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants